package com.tbit.uqbike.object.pojo;

/**
 * 子类
 *
 * @author LMY
 * @create 2023-05-23 14:16
 */
public class TestSubClass extends ParamDate {

    /**
     * 特有属性
     */
    private Integer a;

    /**
     * 区域id
     */
    private Integer accountId;
    /**
     * 日期
     */
    private String date;

    public TestSubClass() {
        fillData();
    }

    public Integer getA() {
        return a;
    }

    public void setA(Integer a) {
        this.a = a;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    @Override
    public String getDate() {
        return date;
    }

    @Override
    public void setDate(String date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "TestAbnor{" +
                "a='" + a + '\'' +
                ", accountId=" + accountId +
                ", date='" + date + '\'' +
                '}';
    }

    public void fillData() {

        if (this.a == null) {
            this.a = 0;
        }
    }
}
